﻿using AutoMapper;
using RBAC.Domain;
using RBAC.Host.Dto.Input;
using RBAC.Host.Dto.Output;

namespace RBAC.Host
{
    public class MyAutoMapper:Profile
    {
        public MyAutoMapper()
        {
            CreateMap<RBAC.Domain.PermissionModel, RBAC.Host.Dto.Input.PermissionDto>();
            CreateMap<RBAC.Domain.RoleModel, RBAC.Host.Dto.Input.RoleDto>();
            CreateMap<RBAC.Domain.RoleModel, RBAC.Host.Dto.Output.RoleListDto>();
            CreateMap<RBAC.Domain.UserModel, RBAC.Host.Dto.Input.UserLoginDto>();
            CreateMap<RBAC.Domain.UserModel, RBAC.Host.Dto.Input.UserDto>();
            CreateMap<PermissionDto,PermissionModel>();
        }
    }
}
